package com.cy.service.impl;

import com.cy.vo.TeamVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.cy.dao.TeamDao;
import com.cy.entity.Team;
import com.cy.service.TeamService;



@Service("teamService")
public class TeamServiceImpl implements TeamService {
	@Autowired
	private TeamDao teamDao;
	
	@Override
	public Team queryObject(Long id){
		return teamDao.queryObject(id);
	}
	
	@Override
	public List<Team> queryList(Map<String, Object> map){
		return teamDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return teamDao.queryTotal(map);
	}
	
	@Override
	public void save(Team team){
		teamDao.save(team);
	}
	
	@Override
	public void update(Team team){
		teamDao.update(team);
	}
	
	@Override
	public void delete(Long id){
		teamDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		teamDao.deleteBatch(ids);
	}

	@Override
	public List<TeamVo> exportList() {
		return teamDao.exportList();
	}

}
